<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>个股详情</title>
		<link href="css/text.css" rel="stylesheet" type="text/css" />
		<style type="text/css">				
			p {margin:1px;}					
			ul {margin:1px;}			
			h4 {margin:0px}	
			#towriter{
				margin-top:-15px;
				border: 1px solid #555555;
				white-space: normal;											
			}
			.fixedBox{					
				white-space: nowrap;	
			}
			.fixedBox::-webkit-scrollbar {
				width: 12px;     
				height: 12px;				
			}			
		</style>
	</head>
	<body>
		<div id="towriter" class="fixedBox"></div>			
		<script type="text/javascript" src="js/json2html.js"></script>
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script>
			
			var txt = "11111";
							
			window.onload = function() {
				var text = load("extern_user.txt");	
				txt = text;
				getSource();
				changeStyle();
			}
			
			function load(name) {
				var xhr = new XMLHttpRequest()							
				okStatus = document.location.protocol === "file:" ? 0 : 200;				
				xhr.open('GET', name, false);
				xhr.overrideMimeType("text/html;charset=gb2312");//默认为utf-8				
				xhr.send(null);
				return xhr.status === okStatus ? xhr.responseText : null;
			}
			
			function changeStyle() {
				var obj = document.getElementById("towriter");				
				obj.style.left= "0px"; 				
				obj.style.width= "480px";	
				obj.style.height= "630px";		
								
				<!-- var obj1 = document.getElementById("towrite1");	//上部				 -->
				<!-- obj1.style.fontSize="13px";	 -->
				<!-- obj1.style.minHeight= "10px";  //最小高度，自动高度						 -->
				
				<!-- var obj2 = document.getElementById("towrite2"); //左下 -->
				<!-- obj2.style.left= "0px"; 				 -->
				<!-- obj2.style.width= "200px";	 -->
				<!-- obj2.style.height= "500px";	 -->
				<!-- obj2.style.fontSize="12px";	 -->
				<!-- obj2.style.marginTop= "-10px"; -->
				
				<!-- var obj3 = document.getElementById("towrite3"); //右下 -->
				<!-- obj3.style.left= "0px";  -->
				<!-- obj3.style.width= "230px"; -->
				<!-- obj3.style.height= "500px"; -->
				<!-- obj3.style.fontSize ="12px"; -->
				<!-- obj3.style.marginTop= "-10px"; -->
				<!-- obj3.style.marginLeft = "2px";  		 -->
			}			
			
			function getSource() {	    
				div = document.getElementById('towriter');
				div.innerHTML = txt;
					
			}
				
		</script>
	
	</body>
</html>